package com.xzj.admin.boot.api.service;

import com.xzj.admin.boot.api.fallback.AdminBootFallBackFactory;
import com.xzj.common.core.domain.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @program: xzj-admin
 * @ClassName: AdminBootService
 * @description: feign
 * @author: XiaZunJun
 * @create: 2024-06-27 10:58
 */
@Service
@FeignClient(contextId="adminBootService",value = "xzj-admin-boot",fallbackFactory = AdminBootFallBackFactory.class)
public interface AdminBootService {

    @GetMapping("/system/userInfoByName/{username}")
    R userInfoByName(@PathVariable(name = "username") String username);

    @GetMapping("/system/userInfoById/{userId}")
    R userInfoById(@PathVariable(name = "userId") String userId);

    @GetMapping("/system/menuList/{userId}")
    R menuList(@PathVariable(name = "userId") String userId);

    @GetMapping("/system/perCodeList/{userId}")
    R perCodeList(@PathVariable(name = "userId") String userId);
}
